function [ aHist ] = my_accumulatedHist( imgGray )
%MY_ACCUMULATEDHIST Calculate the NORMALIZED accumulated histogram

%Get the histogram
histogram = my_hist(imgGray);

acHistogram = zeros(1, 256);
%the first value is the same
acHistogram(1) = histogram(1);

%Go by adding/accumulating the other values
for i=2:256
    acHistogram(i) = histogram(i) + acHistogram(i-1);
end

%Normalize the values
m = max(acHistogram);
aHist = acHistogram/m;

end

